// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// /在项目中引入element-ui组件库cnpm install element-ui
import  ElementUI from  'element-ui'; 
import  'element-ui/lib/theme-chalk/index.css'; 
Vue.use(ElementUI);

import ant from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css'
Vue.use(ant);


import axios from 'axios'  
//1:全部导入axios
axios.defaults.baseURL='http://127.0.0.1:8000/'
//2:设置axios请求的默认域名，在项目中发送，不需要在写这部分域名
Vue.prototype.$axios = axios //this.$axios
//3:axios全局注册（将axios挂载vue的全局属性链）

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
